import request from "@/utils/request.js";
//渠道码分类
export function getChannelQrcodeCateList() {
	return request.get('wechat_qrcode/cate/list');
}
export function saveChannelQrcodeCate(data) {
	return request.post("wechat_qrcode/cate/save", data);
}
export function deleteChannelQrcodeCate(id,data) {
	return request.delete("wechat_qrcode/cate/del/"+id, data);
}

//渠道码
export function getChannelQrcodeList() {
	return request.get('wechat_qrcode/list');
}
export function saveChannelQrcode(id,data) {
	return request.post("wechat_qrcode/save/"+id, data);
}
export function deleteChannelQrcode(id,data) {
	return request.delete("wechat_qrcode/del//"+id, data);
}

//渠道码流水
export function getChannelQrcodeSaleRecordList() {
	return request.get('wechat_qrcode/sale_record/list');
}

//渠道商
export function getChannelByUserID() {
	return request.get('channel/get_by_uid');
}
export function applyForChannel() {
	return request.post("channel/apply");
}